package com.iis.hrms.persistence;

import javax.persistence.*;
import java.io.Serializable;
import java.util.List;

/**
 * The persistent class for the interview_status database table.
 */
@Entity
@Table(name = "interview_status")
@NamedQueries({
        @NamedQuery(name = "InterviewStatus.findAll", query = "SELECT i FROM InterviewStatus i"),
        @NamedQuery(name = "InterviewStatus.findById", query = "SELECT i FROM InterviewStatus i WHERE i.id = :id"),
        @NamedQuery(name = "InterviewStatus.findByStatusName", query = "SELECT i FROM InterviewStatus i WHERE i.statusName = :statusName")})
public class InterviewStatus implements Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(unique = true, nullable = false)
    private String id;

    @Column(name = "status_name", nullable = false, length = 255)
    private String statusName;

    // bi-directional many-to-one association to JobseekerHistory
    @OneToMany(mappedBy = "interviewStatus")
    private List<JobseekerHistory> jobseekerHistories;

    // bi-directional many-to-one association to Question
    @OneToMany(mappedBy = "interviewStatus")
    private List<Question> questions;

    public InterviewStatus() {
    }

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getStatusName() {
        return this.statusName;
    }

    public void setStatusName(String statusName) {
        this.statusName = statusName;
    }

    public List<JobseekerHistory> getJobseekerHistories() {
        return this.jobseekerHistories;
    }

    public void setJobseekerHistories(List<JobseekerHistory> jobseekerHistories) {
        this.jobseekerHistories = jobseekerHistories;
    }

    public List<Question> getQuestions() {
        return this.questions;
    }

    public void setQuestions(List<Question> questions) {
        this.questions = questions;
    }

}